// stdafx.h : include file for standard system include files,
// or project specific include files that are used frequently, but
// are changed infrequently

#pragma once

#ifndef VC_EXTRALEAN
#define VC_EXTRALEAN            // Exclude rarely-used stuff from Windows headers
#endif

#include "targetver.h"

#define _ATL_CSTRING_EXPLICIT_CONSTRUCTORS      // some CString constructors will be explicit

#include <afxwin.h>         // MFC core and standard components
#include <afxext.h>         // MFC extensions

#ifndef _AFX_NO_OLE_SUPPORT
#include <afxole.h>         // MFC OLE classes
#include <afxodlgs.h>       // MFC OLE dialog classes
#include <afxdisp.h>        // MFC Automation classes
#endif // _AFX_NO_OLE_SUPPORT

#ifndef _AFX_NO_DB_SUPPORT
#include <afxdb.h>                      // MFC ODBC database classes
#endif // _AFX_NO_DB_SUPPORT

#ifndef _AFX_NO_DAO_SUPPORT
#include <afxdao.h>                     // MFC DAO database classes
#endif // _AFX_NO_DAO_SUPPORT

#ifndef _AFX_NO_OLE_SUPPORT
#include <afxdtctl.h>           // MFC support for Internet Explorer 4 Common Controls
#endif
#ifndef _AFX_NO_AFXCMN_SUPPORT
#include <afxcmn.h>                     // MFC support for Windows Common Controls
#endif // _AFX_NO_AFXCMN_SUPPORT

#include "ICircuit.h"
#include "CircuitUnit.h"
#include "CircuitJunction.h"
#include "CircuitNetLabel.h"
#include "CircuitPart.h"
#include "CircuitPin.h"
#include "CircuitPowerPort.h"
#include "CircuitWire.h"
#include "CircuitBus.h"
#include "CircuitBusEntry.h"
#include "CircuitFont.h"
#include "CircuitAnnotation.h"
#include "CircuitArc.h"
#include "CircuitBezier.h"
#include "CircuitEllipse.h"
#include "CircuitEllipseArc.h"
#include "CircuitGraph.h"
#include "CircuitLine.h"
#include "CircuitPieChart.h"
#include "CircuitPolygon.h"
#include "CircuitPolyline.h"
#include "CircuitRectangle.h"
#include "CircuitRoundRect.h"
#include "CircuitTextFrame.h"
#include "CircuitPort.h"
#include "CircuitNoERC.h"
#include "CircuitLayoutDirective.h"
#include "CircuitSimProbe.h"
#include "CircuitSimStimulus.h"
#include "CircuitSimVector.h"
#include "CircuitPic.h"
#include "MentorCircuitPart.h"
#include "AltiumCircuitPart.h"
#include "AltiumCircuitPin.h"
#include "AltiumCircuitParam.h"
#include "AltiumCircuitHarnessConnectorType.h"
#include "AltiumCircuitHarnessConnector.h"
#include "AltiumCircuitHarnessEntry.h"
#include "AltiumCircuitSignalHarness.h"
#include "AltiumCircuitSheetEntry.h"
#include "AltiumCircuitSheetSymbol.h"
#include "AltiumCircuitParamSet.h"
#include "AltiumCircuitProbe.h"
#include "AltiumCircuitCompileMask.h"
#include "AltiumCircuitBlanket.h"
#include "AltiumCircuitNote.h"

#include "ICircuitDisObj.h"
#include "CircuitUnitDisObj.h"
#include "CircuitJunctionDisObj.h"
#include "CircuitNetLabelDisObj.h"
#include "CircuitPartDisObj.h"
#include "CircuitPinDisObj.h"
#include "CircuitPowerPortDisObj.h"
#include "CircuitWireDisObj.h"
#include "CircuitBusDisObj.h"
#include "CircuitBusEntryDisObj.h"
#include "CircuitLineDisObj.h"
#include "CircuitPolygonDisObj.h"
#include "CircuitArcDisObj.h"
#include "CircuitAnnotationDisObj.h"
#include "CircuitEllipseDisObj.h"
#include "CircuitPolylineDisObj.h"
#include "CircuitRectangleDisObj.h"
#include "CircuitBezierDisObj.h"
#include "CircuitEllipseArcDisObj.h"
#include "CircuitGraphicDisObj.h"
#include "CircuitPieChartDisObj.h"
#include "CircuitRoundRectDisObj.h"
#include "CircuitTextFrameDisObj.h"
#include "CircuitPicDisObj.h"
#include "CircuitPortDisObj.h"
#include "CircuitLayoutDisObj.h"
#include "CircuitSimProbeDisObj.h"
#include "CircuitSimVectorDisObj.h"
#include "CircuitSimStimulusDisObj.h"
#include "CircuitNoERCDisObj.h"
#include "MentorCircuitPartDisObj.h"
#include "AltiumCircuitPartDisObj.h"
#include "AltiumCircuitPinDisObj.h"
#include "AltiumCircuitParamDisObj.h"
#include "AltiumCircuitHarnessConnectorDisObj.h"
#include "AltiumCircuitHarnessConnectorTypeDisObj.h"
#include "AltiumCircuitHarnessEntryDisObj.h"
#include "AltiumCircuitSignalHarnessDisObj.h"
#include "AltiumCircuitParamSetDisObj.h"
#include "AltiumCircuitSheetEntryDisObj.h"
#include "AltiumCircuitSheetSymbolDisObj.h"
#include "AltiumCircuitProbeDisObj.h"
#include "AltiumCircuitCompileMaskDisObj.h"
#include "AltiumCircuitBlanketDisObj.h"
#include "AltiumCircuitNoteDisObj.h"

#include "../ModelObj/obj.h"
#include "../ModelObj/EntityObj.h"
#include "../ModelObj/Device.h"
#include "../ModelObj/Layer.h"
#include "../ModelObj/HoopsMap.h"
#include "../ModelObj/DisplayObj.h"
#include "../ModelObj/DeviceDisplayObj.h"
#include "../ModelObj/WireDisplayObj.h"
#include "../ModelObj/Matrix.h"
#include "../ModelObj/ModelObjOption.h"
#include "../ModelObj/IModelObjEvent.h"
#include "../ModelObj/Vec.h"
#include "../ModelObj/Transform.h"
#include "../ModelObj/System.h"
#include "hc.h"
#include "HTools.h"

#include "AscFileImport.h"
#include "MentorAscImport.h"
#include "SchdocFileImport.h"
#include "ImageFileImport.h"
#include "ICircuitImportFactory.h"

using namespace std;

#define M_PI       3.14159265358979323846